<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/aun/Timo">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
<div class="layui-form timo-compile">
    <form th:action="@{/admin/quartz/job/app/save}">
        <input type="hidden" name="id" th:if="${entity}" th:value="${entity.id}"/>
        <div class="layui-form-item">
            <label class="layui-form-label required">应用名称</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="name"  placeholder="请输入应用名称" th:value="${entity?.name}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">appName</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="appName"  placeholder="请输入appName" th:value="${entity?.appName}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">授权类型</label>
            <div class="layui-input-inline">
                <select name="authType" mo:dict="AUTH_TYPE" mo-selected="${entity} ? ${entity.authType} : TOKEN" lay-verify="authType"></select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">授权IP</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="authIps"  placeholder="请输入授权IP(多个IP使用英文逗号分隔)" th:value="${entity?.authIps}">
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">描述</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea" name="description">[[${role?.description}]]</textarea>
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>